#!/usr/bin/env python
#Traditional Message Gereration

from email.mime.text import MIMEText
from email import Utils

message = """Hello 
this is a message from chaptter9, I hope you enjoy it!
-- anonymous
"""

msg = MIMEText(message)

msg['To'] = 'evenvi@126.com'
msg['From'] = 'Evenvi <evenvi@163.com>'
msg['Subject'] = 'Test Message, Chapter 9'
msg['Data'] = Utils.formatdate(localtime=1)
msg['Message-ID'] = Utils.make_msgid()


print msg.as_string()


